/*
 * Class Accumulator.java
 * 18.06.2012
 * 
 * Class accumulates the data received from the controller
 */

package accumulator;

/**
 * Class accumulates all data received from the controller
 * and affects the pokemon
 * 
 * @author Dima Glushko
 * @author Sergey Lopachuk
 * @version 1.03
 */
import questionLibrary.OrganInfo;
import human.Human;


public class Accumulator {
	private OrganInfo sumArray;

	public Accumulator(){
		sumArray = new OrganInfo();
	}

	public void addInfo(OrganInfo newInfo){
		sumArray.addParameters(newInfo);
	}

	public void pokemonInfluence(Human newPokemon){
		/*newPokemon.myBrain.changeHealth(sumArray.getParameter(SomeConstants.BRAIN, SomeConstants.HEALTH));
		newPokemon.myBrain.changeFatigue(sumArray.getParameter(SomeConstants.BRAIN, SomeConstants.ENERGY));
		newPokemon.myBrain.changeMemory(sumArray.getParameter(SomeConstants.BRAIN, SomeConstants.MEMORY));
		newPokemon.myBrain.changeOxygenation(sumArray.getParameter(SomeConstants.BRAIN, SomeConstants.OXYGENATION));

		newPokemon.myLiver.changeHealth(sumArray.getParameter(SomeConstants.LIVER, SomeConstants.HEALTH));
		newPokemon.myLiver.changeDetoxification(sumArray.getParameter(SomeConstants.LIVER, SomeConstants.DETOXIFICATION));
		newPokemon.myLiver.changeGlucose(sumArray.getParameter(SomeConstants.LIVER, SomeConstants.GLUCOSE));
		newPokemon.myLiver.changeCholesterol(sumArray.getParameter(SomeConstants.LIVER, SomeConstants.CHOLESTEROL));*/
	}
}